package com.greateamd.timetableasy.client.services.room;

import java.util.Date;
import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.greateamd.timetableasy.domain.Room;
import com.greateamd.timetableasy.domain.exceptions.DBServerSideException;

@RemoteServiceRelativePath("room.rpc")
public interface RoomService extends RemoteService {

	boolean remove(Room room) throws DBServerSideException ;
	boolean save(Room room)throws DBServerSideException;
	boolean update(Room room) throws DBServerSideException;
	Room find(int id) throws DBServerSideException;
	List<Room> getAll() throws DBServerSideException;
	List<Room> getAllOfLoggedUser() throws DBServerSideException;
	
	boolean getDisponibility(Integer excluseThisEventId,String room, Date from, int duration)throws DBServerSideException;
}
